import { request } from '@pkg/request/src';

export enum Api {
  page = '/viproomserver/page',
  list = '/viproomserver/list',
  get = '/viproomserver/get',
  add = '/viproomserver/save',
  update = '/viproomserver/update',
  remove = '/viproomserver/remove',
}


export const list = () => request.get({ url: Api.list }, { errorMessageMode: 'none', successMessageMode: 'none' });

export const get = (id: string) =>
  request.get(
    { url: Api.get, params: { id: id } },
    {
      errorMessageMode: 'none',
      successMessageMode: 'none',
    },
  );
